package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import org.omg.PortableInterceptor.INACTIVE;

import java.io.Serializable;

import static com.baomidou.mybatisplus.annotation.IdType.INPUT;

/**
 * <p>
 * 我的用户表
 * </p>
 *
 * @author zs
 * @since 2019-12-14
 */
@TableName("yingbao_user_my")
public class UserMy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = INPUT)
    private Integer id;

    /**
     * 头像
     */
    @TableField("pic")
    private String pic;

    /**
     * 用户名
     */
    @TableField("name")
    private String name;

    /**
     * vip等级
     */
    @TableField("vip_grade")
    private Integer vipGrade;

    /**
     * 加入时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField("update_date")
    private Date updateDate;

    /**
     * vip到期时间
     */
    @TableField("vip_time")
    private Date vipTime;

    /**
     * 到期时长
     */
    @TableField("vip_duration")
    private Integer vipDuration;

    /**
     * Vip开启时间
     */
    @TableField("vip_addtime")
    private Date vipAddTime;


    /**
     * 乐观锁
     */
    @TableField("version")
    private Integer version;

    /**
     * 备用1
     */
    @TableField("backup1")
    private String backup1;

    /**
     * 备用2
     */
    @TableField("backup2")
    private String backup2;

    /**
     * 备用3
     */
    @TableField("backup3")
    private String backup3;

    /**
     * 备用4
     */
    @TableField("backup4")
    private String backup4;

    /**
     * 备用5
     */
    @TableField("backup5")
    private String backup5;

    /**
     * 备用6
     */
    @TableField("backup6")
    private Long backup6;

    /**
     * 备用7
     */
    @TableField("backup7")
    private Long backup7;

    /**
     * 备用8
     */
    @TableField("backup8")
    private Long backup8;

    /**
     * 备用9
     */
    @TableField("backup9")
    private Long backup9;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getVipGrade() {
        return vipGrade;
    }

    public void setVipGrade(Integer vipGrade) {
        this.vipGrade = vipGrade;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getVipTime() {
        return vipTime;
    }

    public void setVipTime(Date vipTime) {
        this.vipTime = vipTime;
    }

    public Integer getVipDuration() {
        return vipDuration;
    }

    public void setVipDuration(Integer vipDuration) {
        this.vipDuration = vipDuration;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getBackup1() {
        return backup1;
    }

    public void setBackup1(String backup1) {
        this.backup1 = backup1;
    }

    public String getBackup2() {
        return backup2;
    }

    public void setBackup2(String backup2) {
        this.backup2 = backup2;
    }

    public String getBackup3() {
        return backup3;
    }

    public void setBackup3(String backup3) {
        this.backup3 = backup3;
    }

    public String getBackup4() {
        return backup4;
    }

    public void setBackup4(String backup4) {
        this.backup4 = backup4;
    }

    public String getBackup5() {
        return backup5;
    }

    public void setBackup5(String backup5) {
        this.backup5 = backup5;
    }

    public Long getBackup6() {
        return backup6;
    }

    public void setBackup6(Long backup6) {
        this.backup6 = backup6;
    }

    public Long getBackup7() {
        return backup7;
    }

    public void setBackup7(Long backup7) {
        this.backup7 = backup7;
    }

    public Long getBackup8() {
        return backup8;
    }

    public void setBackup8(Long backup8) {
        this.backup8 = backup8;
    }

    public Long getBackup9() {
        return backup9;
    }

    public void setBackup9(Long backup9) {
        this.backup9 = backup9;
    }

    public Date getVipAddTime() {
        return vipAddTime;
    }

    public void setVipAddTime(Date vipAddTime) {
        this.vipAddTime = vipAddTime;
    }

    @Override
    public String toString() {
        return "UserMy{" +
        "id=" + id +
        ", pic=" + pic +
        ", name=" + name +
        ", vipGrade=" + vipGrade +
        ", createTime=" + createTime +
        ", updateDate=" + updateDate +
        ", vipTime=" + vipTime +
        ", vipDuration=" + vipDuration +
        ", version=" + version +
        ", backup1=" + backup1 +
        ", backup2=" + backup2 +
        ", backup3=" + backup3 +
        ", backup4=" + backup4 +
        ", backup5=" + backup5 +
        ", backup6=" + backup6 +
        ", backup7=" + backup7 +
        ", backup8=" + backup8 +
        ", backup9=" + backup9 +
        ", vipAddTime=" + vipAddTime +
        "}";
    }
}
